package com.xdy.server.core2.servlet;

import com.xdy.server.core2.Request;
import com.xdy.server.core2.Servlet;
import com.xdy.server.core2.Response;

/**
 * @Author: XDY.
 * @Email: 2280944114@qq.com
 * @CreateTime: 2023-03-13  14:51
 * @Description: TODO
 * @Version: 1.0
 */
public class LoginServlet implements Servlet {
    @Override
    public void service(Request request, Response response) {
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        System.out.println("username = " + username);
        System.out.println("password = " + password);
        response.print("登录成功！用户名："+username+",密码："+password);
    }
}
